﻿<%@ Page Title="" Language="VB" MasterPageFile="~/KYC/MasterPagePopup.master" AutoEventWireup="false" CodeFile="NonAMLListBiz.aspx.vb" Inherits="KYC_AMLListBiz" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 283px;
        }
        .style2
        {
            height: 20px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <script type="text/javascript">
      var prm = Sys.WebForms.PageRequestManager.getInstance();

      prm.add_initializeRequest(InitializeRequest);
      prm.add_endRequest(EndRequest);

      function InitializeRequest(sender, args) {
          $get('ContentPlaceHolder1_UpdatePanel1').style.cursor = 'wait';
      }

      function EndRequest(sender, args) {
          $get('ContentPlaceHolder1_UpdatePanel1').style.cursor = 'auto';
      }

   </script>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
       <ContentTemplate>

    <div>
        <table style="width: 100%;">
            <tr>
                <td style="width: 218px; text-align: right;" >
                    <asp:Label ID="Label1" runat="server" CssClass="control" 
                        Text="เลขทะเบียนนิติบุคคล"></asp:Label>
                </td>
                <td style="width: 4px">
                    :</td>
                <td style="text-align: left">
                    <asp:Label ID="lblUniqueID" runat="server" CssClass="control" Font-Bold="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 218px; text-align: right;" >
                    <asp:Label ID="Label2" runat="server" CssClass="control" Text="ชื่อ (ไทย)"></asp:Label>
                </td>
                <td  style="width: 4px">
                    :</td>
                <td style="text-align: left">
                    <asp:Label ID="lblTHName" runat="server" CssClass="control" Font-Bold="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 218px; text-align: right;" >
                    <asp:Label ID="Label3" runat="server" CssClass="control" Text="ชื่อ (อังกฤษ)"></asp:Label>
                </td>
                <td style="width: 4px">
                    :</td>
                <td style="text-align: left">
                    <asp:Label ID="lblENName" runat="server" CssClass="control" Font-Bold="True"></asp:Label>
                </td>
            </tr>
          </table>
           
                    <table style="width:100%;">
                        <tr>
                            <td class="style1" style="text-align: left">
                                <asp:RadioButtonList ID="rdoSanction" runat="server" CssClass="control" 
                                    RepeatDirection="Horizontal" Visible="False" AutoPostBack="True">
                                    <asp:ListItem Value="0">มีรายชื่อใน List</asp:ListItem>
                                    <asp:ListItem Value="1">ไม่มีรายชื่อใน List</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td style="text-align: right">
                                <asp:Button ID="btnOK" runat="server" CssClass="control" Text="ตกลง" 
                                    Width="80px" Enabled="False" />
                            </td>
                        </tr>
                    </table>
  
        
         <table style="width: 100%;">
            <tr>
                <td style="text-align: center" class="style2">
                    <asp:Label ID="lblMsg" runat="server" Font-Bold="True" Font-Size="X-Large" 
                        ForeColor="Red" Text="ไม่พบรายชื่อใน  List" Visible="False" 
                        Height="40px"></asp:Label>
                </td>
            </tr>
            
         </table>
         <table style="width: 100%;">
            <tr>
                <td colspan="3" style="text-align: center">
                   <asp:GridView ID="grdList" runat="server" CellPadding="4" 
                        ForeColor="#333333" AutoGenerateColumns="False" Width="100%">
                        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkList" runat="server" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="60px" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="UniqueID" HeaderText="เลขทะเบียนนิติบุคคล" >
                            <ItemStyle HorizontalAlign="Left" Width="200px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="FullName" HeaderText="ชื่อ" >
                            <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="dataSource" HeaderText="แหล่งที่มา" >
                            <ItemStyle HorizontalAlign="Left" Width="150px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="วันที่อัพเดต">
                                <ItemTemplate>
                                    <asp:Label ID="lblActiveDate" runat="server" 
                                        Text='<%# Eval("LastUpdateDate") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="80px" />
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                        <HeaderStyle BackColor="#FF9933" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
             <tr>
                 <td class="style2" style="text-align: center">
                     <asp:Label ID="Label4" runat="server" BackColor="PaleGreen" BorderColor="Black" 
                         BorderWidth="1px" Text="ชื่อไทย" Width="105px"></asp:Label>
                     &nbsp;<asp:Label ID="Label5" runat="server" BackColor="NavajoWhite" 
                         BorderWidth="1px" Text="ชื่ออังกฤษ" Width="105px"></asp:Label>
                 </td>
             </tr>
        </table>
             <br />
        </div>

      </ContentTemplate>
  </asp:UpdatePanel>
</asp:Content>

